home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
pascal
/
tap.exe
/
lha
/
TAP.DOC
next >
Wrap
Text File
|
1989-02-22
|
15KB
|
320 lines
Welcome to Turbo Apprentice
(Documentation v1.0)
Turbo Apprentice is distributed as shareware by Cypress Systems, Inc. If
you use Turbo Apprentice, please send a $15 registration fee to:
Cypress Systems, Inc.
11693 San Vicente Blvd., Suite 175
Los Angeles, CA 90049
Please include your serial number with your registration fee. If you have
any questions, comments or suggestions, please feel free to include them
with your registration fee or call us at (213) 207-3938 between 9:00 am and
5:00 pm (Pacific Standard Time) Monday through Friday. We can also be
reached on BIX (as cypress) or on CompuServe (as 71631,735).
You are free to distribute Turbo Apprentice as long as you do not charge
a fee for doing so. Please include the following files:
TAP.DOC TAP.ARC
TAPINST.EXE or
TAP.EXE
Introduction
------------
Turbo Apprentice is a Terminate and Stay Resident utility which enables
you to extend Turbo Pascal's context sensitive help system to include
reference information for your own units, procedures and functions.
Apprentice works by creating an index file for each unit used by your
program. Once the index files are completed, pop-up help for any
procedure or function used by your program is a key-stroke away.
Turbo Apprentice requires an IBM PC/XT/AT, PS/2 or 100% compatible, MS-DOS
2.0 or higher, a hard disk drive, and Turbo Pascal 4.0 or higher.
Installation
------------
To install Turbo Apprentice:
- Copy the files TAPINST.EXE and Example:
TAP.EXE to the same subdirectory
on your hard disk. C>COPY A:TAP*.EXE C:\TURBO5\TAP
- Change to that directory and run C>CD \TURBO5\TAP
TAPINST.EXE. C>TAPINST
- TAPINST enables you to install a Primary File, a Help Directory, a
list of Unit Directories, a list of Include Directories, and a Color
Set into the TAP.EXE file. Of these, it is ESSENTIAL that you
provide the Help Directory and Unit/Include Directory lists.
Here is an explanation of what each item means:
Primary File - The full path name you provide here will be used
as the default primary program file each time
TAP.EXE is run.
Help Directory - The directory path you provide here tells
Apprentice where to keep the index files it
will create.
Unit Directories - The list of directories you provide here tells
Apprentice where to look for your unit source
files. This list should be identical to the
"Unit Directories" you must provide for Turbo
Pascal.
Include Directories - The list of directories you provide here tells
Apprentice where to look for your include files.
This list should be identical to the "Include
Directories" you must provide for Turbo Pascal.
Colors - The color set you choose will be the one used
by TAP.EXE. The various sets correspond to those
used by Turbo Pascal 4.0 and 5.0.
- Once you have set the various TAPINST options, choose "Quit/save" and
you will be prompted to verify saving the changes to TAP.EXE. Once
you have installed any options into TAP.EXE, you can change them again
by running TAPINST.EXE at any time.
Using Turbo Apprentice
----------------------
To load Apprentice into memory, simply enter "TAP" at the DOS prompt.
Apprentice will display a message telling you if it loaded successfully,
and take you back to the DOS prompt. You may now invoke Turbo Pascal,
and Apprentice will be waiting in the background for you. Since
Apprentice is virtually useless alone, you will want to remove it from
memory after you leave Turbo Pascal. To do this, enter "TAP /r" at
the DOS prompt.
Preparing your source files:
The quickest way to get Apprentice up and running is to make no changes
to your source files. Using this approach means that when you call upon
Apprentice to provide pop-up reference information on a procedure or
function, it will display only the procedure or function header (the name
and parameter information for that procedure or function) and the name
of the unit it is in. This may be enough for most of your purposes.
However, Apprentice does provide a way for you to view any comments you
may wish to include along with the procedure or function header. By
including your comments in your source file directly following the
procedure or function header declaration, and surrounding the comments
by {* and *} or (** and **), you will be telling Apprentice to include
those comments in the help window. For example, the following piece of
code:
procedure GetAddress(var theAddress : string);
{*
This procedure prompts the user for the employee's address and returns
the address in the parameter "theAddress".
*}
will cause the following information to be popped-up:
+------------------------------ Apprentice ------------------------------+
| Unit: Entry |
| |
| procedure GetAddress(var theAddress : string); |
| |
| |
| This procedure prompts the user for the employee's address and returns |
| the address in the parameter "theAddress". |
| |
| |
| |
+------------------------------------------------------------------------+
NOTE: For procedure and function declarations that appear in the
INTERFACE section of a unit, you must include your comments with
the interface declaration if you want them to be recognized by
Apprentice.
An additional feature of Apprentice is its "hot keywords". In the above
help window, the unit name "Entry" would be highlighted as a hot keyword.
Pressing <Enter> while "Entry" is highlighted would bring up the help
information for the Entry unit. (Unit help information is provided auto-
matically by Apprentice).
You can include hot keyword references to other units, procedures and
functions in your own comments by surrounding each keyword with the
vertical bar character (|). Here's an example:
procedure GetAddress(var theAddress : string);
{*
This procedure prompts the user for the employee's address and returns
the address in the parameter "theAddress".
See also: |GetCity| |GetState| |GetZip|
*}
would cause the following information to be popped-up:
+------------------------------ Apprentice ------------------------------+
| Unit: Entry |
| |
| procedure GetAddress(var theAddress : string); |
| |
| |
| This procedure prompts the user for the employee's address and returns |
| the address in the parameter "theAddress". |
| |
|